﻿using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WCS.Entity
{
    /// <summary>
    /// 堆垛机写入实体
    /// </summary>
    public class StackerWriteData
    {
        /// <summary>
        /// 作业命令
        /// </summary>
        public int? CommandType { get; set; }

        /// <summary>
        /// 任务号
        /// </summary>
        public string Task_Code { get; set; }

        /// <summary>
        /// 托盘号
        /// </summary>
        public string TrayBar_Code { get; set; }

        /// <summary>
        /// 起始站台
        /// </summary>
        public string StartStation { get; set; }

        /// <summary>
        /// 起始作业地址排
        /// </summary>
        public string StartRow { get; set; }

        /// <summary>
        /// 起始作业地址列
        /// </summary>
        public string StartColumn { get; set; }

        /// <summary>
        /// 起始作业地址层
        /// </summary>
        public string StartLayer { get; set; }

        /// <summary>
        /// 结束站台
        /// </summary>
        public string EndStation { get; set; }

        /// <summary>
        /// 结束作业地址排
        /// </summary>
        public string EndRow { get; set; }

        /// <summary>
        /// 结束作业地址列
        /// </summary>
        public string EndColumn { get; set; }

        /// <summary>
        /// 结束作业地址层
        /// </summary>
        public string EndLayer { get; set; }

        /// <summary>
        /// 输送动作逻辑_工位1
        /// </summary>
        public int? AllowRelease { get; set; }
    }

    public enum CommandType
    {
        入库 = 1,
        出库 = 2,
        库位间移动 = 3,
        取消作业 = 4,
        解警 = 5,
        取货准备 = 6,
        召回 = 7,
        急停 = 8,
        申请脱机 = 9,
        申请联机 = 10,
        确认收到放货完成 = 11,
        消防任务 = 12
    }
}
